package com.lqfan.autoAnswerQ.service.wrongSubject;

import com.lqfan.autoAnswerQ.model.quesBank.QuesBankModel;
import com.lqfan.autoAnswerQ.model.quesBank.Question;
import com.lqfan.autoAnswerQ.model.wrongSubject.WrongSubject;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zml
 * @since 2020-04-26
 */
public interface IWrongSubjectService extends IService<WrongSubject> {
  int  insertWrongSubject(String questionId,String userId,String subjectId,String confirmNumber,Integer isDeleteWrong,String path ,String isError,String name);
  int updateWrongSet(String confirmNumber,String userId,Integer isDeleteWrong);
  int deleteWrongProduct(String userId,String productId);
  int deleteWrongPath(String userId,String path);
  List<Question> getWrongQuestion(String path, String userId);

  QuesBankModel getSubjectWithPage(QuesBankModel quesBankModel, String userId, String questionId, int currentPage, int limit);
  QuesBankModel getAllSubjectWithPage(QuesBankModel quesBankModel, String userId, String questionId, int currentPage, int limit,int subjectType);
}
